package edu.mit.media.fv.events
{
	import edu.mit.media.fv.aqwidgets.AQWidget;
	
	import flash.events.Event;
	
	public class WidgetEvent extends Event
	{
		public static const DISPLAY_POLL_BUILDER:String = "displayPollBuilder";
		public static const DISPLAY_IM_BUILDER:String = "displayIMBuilder";
		public static const DISPLAY_TEXT_BUILDER:String = "displayTextBuilder";
		public static const DISPLAY_VOICE_BUILDER:String = "displayVoiceBuilder";
		public static const DISPLAY_SHOPPING_BUILDER:String = "displayShoppingBuilder";
		public static const DISPLAY_PIX_BUILDER:String = "displayPixBuilder";
			
		public static const DISPLAY_NAVIGATOR:String = "displayNavigator";
		public static const DISPLAY_TIMELINE:String = "displayTimeline";
		public static const DISPLAY_WORKSPACE:String = "displayWorkspace";				
		public static const DISPLAY_GROUP_VIEW:String = "displayGroupView";				
		public static const DISPLAY_MESSAGE_BUILDER:String = "displayMessageBuilder";
		public static const DISPLAY_WIDGET:String = "displayWidget";
		
		public var text:String;
		public var widget:AQWidget;
		public var id:int = -1;
		public var subject:String;
		
		public function WidgetEvent(type:String, widget:AQWidget = null, text:String = null)
		{
			super(type);
			this.widget = widget;
			this.text = text;
		}

	}
}